#pragma once

#include "lg_ref.h"

#include "lg2d.h"

struct LG2DScene {
	LGRef ref;
	unsigned width;
	unsigned height;
	LGVertex* vertex;
	LGCanvas* canvas;
	LG2DObj* root;
	LGList* cmdList;
};

extern void
lg2dPushSceneCmd(LG2DScene* scene,
	LGMaterial* material, unsigned count);
extern void
lg2dPushScenePoints(LG2DScene* scene,
	LG2DPoint* p, unsigned count, LGMatrix* transform);
extern void
lg2dPushSceneIndexs(LG2DScene* scene, unsigned* p, unsigned count);